﻿@{
    Layout = null;
}
@model System.Collections.IEnumerable
<!DOCTYPE html>
<html>
@Html.Partial("LoadPanelPartial")
<head>
<title></title>
    @if (false)
    {
        <script src="../../Scripts/jquery-vsdoc.js" type="text/javascript"></script>
        <script src="../../Scripts/ASPxScriptIntelliSense.js" type="text/javascript"></script>
    }
    <link href="@Url.Content("~/Content/Site.css", true)" rel="stylesheet" type="text/css" />
    <script src="@Url.Content("~/Scripts/jquery.min.js", true)" type="text/javascript"></script>
     <script src="@Url.Content("~/Common/GetRootPath.ashx", true)" type="text/javascript"></script>
    @Html.DevExpress().GetStyleSheets(
                new StyleSheet { ExtensionType = ExtensionType.GridView, Theme = DevExpressHelper.Theme }

)
    @Html.DevExpress().GetStyleSheets(

        new StyleSheet { ExtensionType = ExtensionType.ListBox, Theme = DevExpressHelper.Theme }
)
    @Html.DevExpress().GetScripts(
        new Script { ExtensionType = ExtensionType.ListBox }
)

    <script type="text/javascript">

        function OnBeginCallback(s, e) {
            e.customArgs["command"] = e.command;
            e.customArgs["pageIndex"] = s.pageIndex;
            e.customArgs["pageCount"] = s.pageCount;
            e.customArgs["pageRowSize"] = s.pageRowSize;
            e.customArgs["pageRowCount"] = s.pageRowCount;
            e.customArgs["FYear"] = $("#hidFYear").val();
            e.customArgs["FAllowanceClassNo"] = $("#hidFAllowanceClassNo").val();
            e.customArgs["issueID"] = $("#hidissueID").val();
        }

        function AllowanceCalcManage(codeNo) {
            window.location.href = rootPath + '/AllowanceCalcManage/AllowanceCalcEdit?FIssueID=' + codeNo;
        }

        function search() {
            $("#hidFYear").val(FYear.GetText());
            $("#hidFAllowanceClassNo").val(FAllowanceClassNo.GetValue());
            $("#hidissueID").val(issueID.GetValue());
            gvEditing.Refresh();
        }
        
    </script>
</head>
<body>
                <table align="center" class="tableForm">
        <tr>
            <td style=" text-align:right; vertical-align:middle"  class="tdClass">
               年度:</td>
            <td style="text-align:left; vertical-align:middle"  class="tdClass">
           @Html.DevExpress().TextBox(settings =>
            {
                settings.Name = "FYear";
                settings.Text = EnterpriseFund.Common.OperateSession.get(EnterpriseFund.Common.GlobalConstant.PARAM_SYSYEAR);
                settings.Properties.MaskSettings.Mask = "yyyy";
                settings.Width = 150;
                settings.Properties.MaxLength = 4;
            }).GetHtml()
            </td>
              <td style=" text-align:right; vertical-align:middle"  class="tdClass">
               期号:</td>
            <td style="text-align:left; vertical-align:middle"  class="tdClass">
           @Html.DevExpress().TextBox(settings =>
            {
                settings.Name = "issueID";
                settings.Width = 150;
            }).GetHtml()
            </td>
    <td align="right" class="tdClass">
     补贴方式：
    </td>
     <td class="tdClass">
      @Html.DevExpress().ComboBox(settings =>
               {
                   settings.Name = "FAllowanceClassNo";
                   settings.Properties.DropDownStyle = DropDownStyle.DropDownList;
                   settings.Width = 200;
                   settings.Properties.TextField = "FAllowanceName";
                   settings.Properties.ValueField = "FAllowanceClassNo";
               }).BindList(ViewData["AllowanceClassList"]).GetHtml()
    </td>
            <td>
             @Html.DevExpress().Button(settings =>
            {
                settings.Name = "btnSearch";
                settings.Text = "查询";
                settings.ControlStyle.CssClass = "button";
                settings.Images.Image.Url = Url.Content("~/Content/ControlImages/search.png");
                settings.ClientSideEvents.Click = "search";
            }).GetHtml()
            </td>
        </tr>
    </table>
        @Html.Partial("AllowanceCalcManageListPartial", Model)
        @Html.Hidden("hidFAllowanceClassNo","")
        @Html.Hidden("hidFYear", "")
        @Html.Hidden("hidissueID", "")
    <script>
        lp.Hide();
    </script>
</body>
</html>
